package com.longsec.qq.common;

public class Constant {

	/**登入页面*/
	private static final String URL_XLOGIN = "https://xui.ptlogin2.qq.com/cgi-bin/xlogin?proxy_url=https%3A//qzs.qq.com/qzone/v6/portal/proxy.html&daid=5&&hide_title_bar=1&low_login=0&qlogin_auto_login=1&no_verifyimg=1&link_target=blank&appid=549000912&style=22&target=self&s_url=https%3A%2F%2Fqzs.qzone.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&pt_qr_app=%E6%89%8B%E6%9C%BAQQ%E7%A9%BA%E9%97%B4&pt_qr_link=http%3A//z.qzone.com/download.html&self_regurl=https%3A//qzs.qq.com/qzone/v6/reg/index.html&pt_qr_help_link=http%3A//z.qzone.com/download.html&pt_no_auth=1"; 

	/**
	 * 首次登入地址
	 * @return
	 */
	public static String getUrlXlogin(){
		return URL_XLOGIN;
	}
	
	/**
	 * 获取登入二维码地址
	 * @return
	 */
	public static String getUrlPtqrshow(){
		return "https://ssl.ptlogin2.qq.com/ptqrshow?appid=549000912&e=2&l=M&s=3&d=72&v=4&t="+System.currentTimeMillis()+"&daid=5&pt_3rd_aid=0";
	}

	/**
	 * 获取验证登入状态地址
	 * @param ptqrtoken
	 * @param loginSig
	 * @return
	 */
	public static String getUrlPtqrlogin(String ptqrtoken,String loginSig){
		return 
				"https://ssl.ptlogin2.qq.com/ptqrlogin?u1=https%3A%2F%2Fqzs.qzone.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&ptqrtoken="+
				ptqrtoken +
				"&ptredirect=0&h=1&t=1&g=1&from_ui=1&ptlang=2052&action=0-0-1575266882161&js_type=1&aid=549000912&daid=5&pt_uistyle=40&login_sig="+
				loginSig + "&";
	}
	
	
	
}
